POV-Ray : Newsgroups : povray.advanced-users : Evil Fog : Evil Fog Server Time
30 Jul 2024 10:21:25 EDT (-0400)
  Evil Fog  
From: Josh Franklin
Date: 22 Sep 1999 23:14:55
Message: <37E99AC9.7D7872FA@yahoo.com>
I'm trying to add fog into a scene, but for some reason, it messes up my
media objects. For example, I have a cylinder with media to simulate
fire...without fog it looks great, but when I add in fog, the cylinder
becomes visible like I gave it a filter pigment. does anyone know how to
get rid of this?


thanks
-Josh
here is the fog code:


//1 unit = 1 meter
fog {
	fog_type 2 distance 80 color rgbf < 0.6, 0.4, 0.6, 0.4 >
	turbulence 0.6 turb_depth 10
	omega .75 lambda 2.5 octaves 3
	fog_offset 0.8 fog_alt 1.3
}

//here is the fire
#declare fire =
cylinder {
	<0, 0.01, 0 >, < 0, 2, 0 >, 1
	pigment { color rgbf 1 }
	interior {
    	media {
      		emission 1.2
			intervals 20
			samples 1, 10
			confidence 0.9999
			variance 1/1000
			density {
				cylindrical
		        poly_wave pi
		        turbulence 1.1
		        color_map {
			          [0.0 color rgbt < 0, 0, 0, -1 > ]
			          [0.3 color rgbf <1, .45, 0, -.9 >]
			          [0.8 color rgbf <1, 1, 0, .8 >]
			          [1.0 color rgbt < 0, 0, 0, -1 > ]			          
		        } 
		        scale < 1.4, .8, .8 >
		        rotate 90*z rotate 85*y
      		}
    	}
	}
	hollow
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.